// Learn cc.Class:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html
//  - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
let base = require("panelBase");
let viewConfig = {
    btn_close:{
        node:null,
        name:"bg/btn_close",
        eventType:"click",
        cb:"onBtnCloseClick"
    },
    reward:{
        node:null,
        name:"bg/reward",
    },
    btn_double:{
        node:null,
        name:"bg/btn_double",
        eventType:"click",
        cb:"onBtnDoubleClick"
    },
}
cc.Class({
    extends: base,

    properties: {
        
    },

    init(){
        this._super(viewConfig);
        this.isInited = true;
        this.onHide();
    },

    onBtnCloseClick(){
        this.onHide();
    },

    onBtnDoubleClick(){
        cc.tg.adDataCenter.toShowAd("lx");
    },
});
